home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Framewrk / FWViews / Include / FWGrowBx.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.9 KB  |  68 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWGrowBx.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWGROWBX_H
  11. #define FWGROWBX_H
  12.  
  13. #ifndef FWVIEW_H
  14. #include "FWView.h"
  15. #endif
  16.  
  17. #ifndef FWRUNTYP_H
  18. #include "FWRunTyp.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. //    Forward Class Definitions
  23. //========================================================================================
  24.  
  25. class FW_CFrame;
  26. class FW_CActivateEvent;
  27.  
  28. //========================================================================================
  29. //    CLASS FW_CGrowBox
  30. //========================================================================================
  31.  
  32. class FW_CGrowBox : public FW_CView
  33. {
  34. public:
  35.     FW_DECLARE_CLASS
  36.  
  37. //----------------------------------------------------------------------------------------
  38. //    Initialization/destruction
  39. //
  40. public:
  41.     // One-step construction
  42.     FW_CGrowBox(Environment* ev, 
  43.                 FW_CSuperView* container, 
  44.                 ODID id,
  45.                 const FW_CPoint& location);
  46.                 
  47.     virtual ~FW_CGrowBox();    
  48.  
  49. private:
  50.     // Two-step construction
  51.     FW_CGrowBox(Environment* ev);
  52.  
  53. //----------------------------------------------------------------------------------------
  54. //    Inherited API
  55. //
  56. public:
  57.     virtual void         Draw(Environment* ev, ODFacet* facet, ODShape* invalidShape);
  58.     virtual void        DoActivateEvent(Environment *ev, const FW_CActivateEvent& theActivateEvent);
  59.     
  60. // ----- Archiving -----
  61.     static void*        Create(FW_CReadableStream& stream, FW_ClassTypeConstant type);
  62.     static void            Destroy(void* object, FW_ClassTypeConstant type);
  63.     virtual void        Flatten(Environment*ev, FW_CWritableStream& stream) const;
  64.     virtual void        InitializeFromStream(Environment*ev, FW_CReadableStream& stream);
  65. };
  66.  
  67. #endif
  68.